<?php
// FileFind - ftp/shares indexing and search php engine,
// http://project.ffind.ru
//
// Module: lib/lib.view.php
// Description: Formatting function, some constant array of strings
// Copyright (c) 2003-2008 Rage Steel, www.gt2.ru
// ----------------------------------------------
// $Id$

$host_type_txt = array(
  HOST_TYPE_FTP => 'ftp', 
  HOST_TYPE_SHARE => 'share'
);

function get_host_type_txt($host_type) {
  global $host_type_txt;

  if (isset($host_type_txt[$host_type])) {
    return $host_type_txt[$host_type];
  } else {
    return '(' . L_UNKNOWN . ')';
  }
} // get_host_type_txt

?>